//
//  LHYTextFieldCopyView.h
//  DrawLine
//
//  Created by lhy on 2021/2/4.
//

#import <UIKit/UIKit.h>
/// 实现功能
/// 1、 UITextField 自动换行;
/// 2、点击出现气泡 复制与删除;
/// 3、长按任意拖动
@interface LHYTextFieldCopyView : UITextField <UITextFieldDelegate>
/// 用label显示换行内容,替换text
@property (nonatomic, strong) UILabel *label;
/// 所属第几个page
@property (nonatomic, assign) NSInteger pageIndex;

@property (nonatomic, copy) void (^getCopyTextBlock)(NSString *copyText, CGRect bounds);

@property (nonatomic, copy) void (^removeTextBlock)(LHYTextFieldCopyView *textField);
/**
 *  自定义初始化方法
 *  @param frame        frame
 *  @param placeholder 提示语
 *  @param clear        是否显示清空按钮 YES为显示
 *  @param view         是否设置leftView,不设置传nil
 *  @param font         设置字号
 */
- (id)initWithFrame:(CGRect)frame placeholder:(NSString *)placeholder clear:(BOOL)clear leftView:(id)view fontSize:(CGFloat)font;

@end
